﻿<%@ Page Title="تقرير موقف الاتحاد" Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Report.Master"
    CodeBehind="UnionStatusReport.aspx.cs" Inherits="Pap.Web.Modules.Reports.Views.UnionStatusReport"
    meta:resourcekey="PageResource1" %>

<%@ MasterType VirtualPath="~/MasterPages/Report.Master" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ReportParamsPlaceHolder" runat="server">
    <ext:Store ID="strProjects" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="ProjectID">
                <Fields>
                    <ext:RecordField Name="ProjectID" />
                    <ext:RecordField Name="ProjectName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strReport" runat="server">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="Key" />
                    <ext:RecordField Name="Value" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:FormLayout ID="FormLayout1" runat="server">
        <ext:Anchor Horizontal="95%">
            <ext:MultiSelect runat="server" StoreID="strProjects" ID="lstProjects" DisplayField="ProjectName"
                ValueField="ProjectID" TypeAhead="true" Editable="true" FieldLabel="المشاريع"
                AllowBlank="false">
            </ext:MultiSelect>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:MultiField runat="server" FieldLabel="تاريخ">
                <Fields>
                    <ext:Label runat="server" Text="من:">
                    </ext:Label>
                    <ext:DateField runat="server" ID="dtFromDate" AllowBlank="false" />
                    <ext:Label runat="server" Text="الى:">
                    </ext:Label>
                    <ext:DateField runat="server" ID="dtToDate" AllowBlank="false" />
                </Fields>
            </ext:MultiField>
        </ext:Anchor>
    </ext:FormLayout>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ReportBodyPlaceHolder" runat="server">
    <div class="r-container">
        <header>
            <div class="logo">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/PAPLogo.jpg" />
            </div>
            <div class="title">
                <%= this.Page.Title %>
            </div>
        </header>
        <div>
            <ext:DataView ID="DataView1" runat="server" StoreID="strReport" SingleSelect="true"
                ItemSelector="tr.row" EmptyText="<div class='x-r-emptyText'>No Data To Display</div>">
                <Template>
                    <html>
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tpl for=".">
                            <tr>
                                <th width="25%">
                                    {Key}
                                </th>
                                <td style="padding-right:50px">
                                    {Value}
                                </td>
                            </tr>
                        </tpl>
                        </table>
                    </html>
                </Template>
            </ext:DataView>
        </div>
        <footer>
        </footer>
    </div>
</asp:Content>
